<template>
  <div>
    <el-table :data="recordList" tooltip-effect="light" class="tc-table" size="small">
      <el-table-column type="index" width="55" fixed="left" label="序号"></el-table-column>
      <template v-for="(column, index) in headList">
        <el-table-column :prop="column.prop" :label="column.label" :key="index" :width="column.width" :show-overflow-tooltip="true" />
      </template>
    </el-table>
  </div>
</template>

<script>
import { FOLLOW_HEAD_LIST } from '../js/contant.js'
export default {
  props: {
    recordList: Array,
    headList: Array
  },
  data () {
    return {
      FOLLOW_HEAD_LIST
    }
  }
}
</script>
<style scoped>
</style>
